package exo1;

import java.io.*;

public class Personne {
	
	private final String nom;
	
	private final String prenom;
	
	private String adresse;
	
	private String numTel;
	
	private final String dateNaiss;
	
	private final String sexe;
	
	public Personne(String nom, String prenom, String adresse, String numTel, String dateNaiss, String sexe){
		this.nom=nom;
		this.prenom=prenom;
		this.adresse=adresse;
		this.numTel=numTel;
		this.dateNaiss=dateNaiss;
		this.sexe=sexe;
	}

	public String getNom() {
		return nom;
	}

	public String getPrenom() {
		return prenom;
	}
	
	@Override
	public String toString(){
		StringBuffer sb = new StringBuffer();
		sb.append("Nom: ").append(getNom()).append(" Prenom: ").append(getPrenom());
		return sb.toString();
	}
	
}
